{include file="header.html"}
<link href="{$smarty.const.CSS_PATH}article.css" rel="stylesheet" type="text/css" />
<link href="{$smarty.const.CSS_PATH}shCoreDefault.css" rel="stylesheet" type="text/css" />
<div class="content">
    <div style="height:20px;"></div>
    <div class="artcle_list">
        {if $article !=''}
        <div class="artcle" data-id="{$smarty.get.aid}" id="articlename">
            <ul>
                <li>
                    <div class="desc">
                        <div>
                            <!-- <a href=""><img src="images/bodyBg.jpg" width="700px" height="370px" alt="" title=""></a> -->
                        </div>
                        <div>
                            <h2> <span style="text-transform:capitalize;font-size: larger"> {$categorys[$smarty.get.category-1]['name']}</span> {$article['title']}</h2>
                                 <div  class="showContent">{$article['content']}</div>
                            <small>By<a href=""> {$article['author']} </a> 在  {$article['leavetime']|date_format:"%Y-%m-%d"} <a href="#huangyanxiong" class="call" id="0"> 评论 </a> {$article['comm']} </small>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
        <div class="comment">
            <h1>评论 ({$article['comm']})</h1>
            <div class="spacing"></div>
            <ul>
                {foreach from=$comment item=comm}
                {if $comm['pid'] eq 0}
                <li class="first_replay" >
                    <div class="avatar">
                        <img src="{$smarty.const.IMG_PATH}avatar.gif" width="50px" height="50px">
                    </div>
                    <div class="vertical">
                        <div class="discuz">
                            <p>{$comm['comment']}</p>
                            <small>By <span>{$comm['nickname']}</span> 在  {$comm['time']|date_format:"%Y-%m-%d"} <!--<span>个人主页：<a href="http://www.myfreax.com">www.myfreax.com</a></span>--><span> <a href="#huangyanxiong" class="call" id="{$comm['id']}">回复</a></span></small>
                        </div>
                        <div class="sed_reply">
                            <ul>
                                {foreach from=$comm.childs  item=sed}
                                <li>
                                    <div class="sed_avatar">
                                        <img src="{$smarty.const.IMG_PATH}avatar.gif" width="50px" height="50px">
                                    </div>
                                    <div class="sed_vertical">
                                        <div class="sed_discuz">
                                            <p>{$sed['comment']}</p>
                                            <small>By <span>{$sed['nickname']}</span> 在   {$sed['time']|date_format:"%Y-%m-%d"} <span> <a href="#huangyanxiong" id="{$comm['id']}" class="call"> 回复 </a></span></small>
                                        </div>
                                    </div>
                                </li>
                                {/foreach}
                            </ul>
                        </div>
                    </div>
                </li>
                {/if}
                {/foreach}
            </ul>
        </div>
        {/if}
        <div class="clrear"></div>
        <div class="leave" id="huangyanxiong">
            <form id="leavecomm">
                <h1>发表评论</h1>
                <hr>
                <ul>
                    <li><label>昵称/Username:</label><input type="text" name="nickname" id="nickname"></li>
                    <li><label>电子邮件/Email: </label><input type="text" name="email"></li>
                    <!--<li><label>个人主页/Web: &nbsp;</label><input type="text" id="web" name="web"></li>-->
                    <li><label>内容/Message:</label><textarea id="commcontent"></textarea></li>
                </ul>
            </form>
            <small>	<input type="button" value="评论" id="comm"  disabled="true"></small>
        </div>
    </div>
    <script type="text/javascript" src="{$smarty.const.JS_PATH}jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="{$smarty.const.JS_PATH}shCore.js"></script>
    <script type="text/javascript"  src="{$smarty.const.JS_PATH}uparse.js"></script>
    <script type="text/javascript">
        uParse('.showContent');
        $(function(){
            //为了在编辑器之外能展示高亮代码
            SyntaxHighlighter.highlight();
        });
    </script>
    {include file="left.html"}
</div>
</div>
{include file="footer.html"}